home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_jeepmonitor.cog < prev    next >
Text File  |  1999-11-15  |  757b  |  47 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_jeepmonitor.cog
  4. #    
  5. # Global2 = 1 when Indy is in the jeep.
  6. # Global2 = 0 when he gets out.
  7. # Also force visibility on the static jeep when it's unboarded.
  8. #
  9. # [RKD]
  10. #
  11. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  12. # ========================================================================================
  13.  
  14. symbols
  15. message    startup
  16. message    boarded
  17. message    unboarded
  18.  
  19. thing    jeep
  20.  
  21. end
  22.  
  23. code
  24. startup:
  25.     sleep(.01);
  26.     global2 = 0;
  27.         
  28.     return;
  29.  
  30. boarded:
  31.     if (GetSenderRef() != jeep) return;
  32.     
  33.     global2 = 1;
  34.     return;
  35.  
  36. unboarded:
  37.     if (GetSenderRef() != jeep) return;
  38.         
  39.     # insurance against jeep disappearance
  40.     ClearThingFlags(jeep, 0x10);
  41.     
  42.     global2 = 0;
  43.     return;
  44.  
  45. end
  46.  
  47.